package com.xxx.encrypt.rsa;

/**
 * rsa加解密用的公钥和私钥
 * @author Administrator
 *
 */
public class RsaKeys {

	//生成秘钥对的方法可以参考这篇帖子
	//https://www.cnblogs.com/yucy/p/8962823.html

//	//服务器公钥
//	private static final String serverPubKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6Dw9nwjBmDD/Ca1QnRGy"
//											 + "GjtLbF4CX2EGGS7iqwPToV2UUtTDDemq69P8E+WJ4n5W7Iln3pgK+32y19B4oT5q"
//											 + "iUwXbbEaAXPPZFmT5svPH6XxiQgsiaeZtwQjY61qDga6UH2mYGp0GbrP3i9TjPNt"
//											 + "IeSwUSaH2YZfwNgFWqj+y/0jjl8DUsN2tIFVSNpNTZNQ/VX4Dln0Z5DBPK1mSskd"
//											 + "N6uPUj9Ga/IKnwUIv+wL1VWjLNlUjcEHsUE+YE2FN03VnWDJ/VHs7UdHha4d/nUH"
//											 + "rZrJsKkauqnwJsYbijQU+a0HubwXB7BYMlKovikwNpdMS3+lBzjS5KIu6mRv1GoE"
//											 + "vQIDAQAB";
//
//	//服务器私钥(经过pkcs8格式处理)
//	private static final String serverPrvKeyPkcs8 = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDoPD2fCMGYMP8J"
//				 								 + "rVCdEbIaO0tsXgJfYQYZLuKrA9OhXZRS1MMN6arr0/wT5YniflbsiWfemAr7fbLX"
//				 								 + "0HihPmqJTBdtsRoBc89kWZPmy88fpfGJCCyJp5m3BCNjrWoOBrpQfaZganQZus/e"
//				 								 + "L1OM820h5LBRJofZhl/A2AVaqP7L/SOOXwNSw3a0gVVI2k1Nk1D9VfgOWfRnkME8"
//				 								 + "rWZKyR03q49SP0Zr8gqfBQi/7AvVVaMs2VSNwQexQT5gTYU3TdWdYMn9UeztR0eF"
//				 								 + "rh3+dQetmsmwqRq6qfAmxhuKNBT5rQe5vBcHsFgyUqi+KTA2l0xLf6UHONLkoi7q"
//				 								 + "ZG/UagS9AgMBAAECggEBANP72QvIBF8Vqld8+q7FLlu/cDN1BJlniReHsqQEFDOh"
//				 								 + "pfiN+ZZDix9FGz5WMiyqwlGbg1KuWqgBrzRMOTCGNt0oteIM3P4iZlblZZoww9nR"
//				 								 + "sc4xxeXJNQjYIC2mZ75x6bP7Xdl4ko3B9miLrqpksWNUypTopOysOc9f4FNHG326"
//				 								 + "0EMazVaXRCAIapTlcUpcwuRB1HT4N6iKL5Mzk3bzafLxfxbGCgTYiRQNeRyhXOnD"
//				 								 + "eJox64b5QkFjKn2G66B5RFZIQ+V+rOGsQElAMbW95jl0VoxUs6p5aNEe6jTgRzAT"
//				 								 + "kqM2v8As0GWi6yogQlsnR0WBn1ztggXTghQs2iDZ0YkCgYEA/LzC5Q8T15K2bM/N"
//				 								 + "K3ghIDBclB++Lw/xK1eONTXN+pBBqVQETtF3wxy6PiLV6PpJT/JIP27Q9VbtM9UF"
//				 								 + "3lepW6Z03VLqEVZo0fdVVyp8oHqv3I8Vo4JFPBDVxFiezygca/drtGMoce0wLWqu"
//				 								 + "bXlUmQlj+PTbXJMz4VTXuPl1cesCgYEA6zu5k1DsfPolcr3y7K9XpzkwBrT/L7LE"
//				 								 + "EiUGYIvgAkiIta2NDO/BIPdsq6OfkMdycAwkWFiGrJ7/VgU+hffIZwjZesr4HQuC"
//				 								 + "0APsqtUrk2yx+f33ZbrS39gcm/STDkVepeo1dsk2DMp7iCaxttYtMuqz3BNEwfRS"
//				 								 + "kIyKujP5kfcCgYEA1N2vUPm3/pNFLrR+26PcUp4o+2EY785/k7+0uMBOckFZ7GIl"
//				 								 + "FrV6J01k17zDaeyUHs+zZinRuTGzqzo6LSCsNdMnDtos5tleg6nLqRTRzuBGin/A"
//				 								 + "++xWn9aWFT+G0ne4KH9FqbLyd7IMJ9R4gR/1zseH+kFRGNGqmpi48MS61G0CgYBc"
//				 								 + "PBniwotH4cmHOSWkWohTAGBtcNDSghTRTIU4m//kxU4ddoRk+ylN5NZOYqTxXtLn"
//				 								 + "Tkt9/JAp5VoW/41peCOzCsxDkoxAzz+mkrNctKMWdjs+268Cy4Nd09475GU45khb"
//				 								 + "Y/88qV6xGz/evdVW7JniahbGByQhrMwm84R9yF1mNwKBgCIJZOFp9xV2997IY83S"
//				 								 + "habB/YSFbfZyojV+VFBRl4uc6OCpXdtSYzmsaRcMjN6Ikn7Mb9zgRHR8mPmtbVfj"
//				 								 + "B8W6V1H2KOPfn/LAM7Z0qw0MW4jimBhfhn4HY30AQ6GeImb2OqOuh3RBbeuuD+7m"
//				 								 + "LpFZC9zGggf9RK3PfqKeq30q";

	/**
	 * 服务器公钥
	 */
	private static final String SERVER_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzXQvR+bgNNpvt1beYtkN\n" +
			"w0xgELMSTDp0CCEOy4sCplFwMR8MAfwZlvRcIijyPO1drKOAPvtGePAb7/HnOmiB\n" +
			"4jW0Q/MKtPfQhY5WeTXuFOcM3SRpsXfPXDs8naUCH0E67OtdJxAZkJiX8v088nDh\n" +
			"bu7u9DstiUxdOwX24819PRjMiLhI7k883HCxlUhyqSTyvNbS7VINpn9M2IjuCx69\n" +
			"tKBJxBpET+kY+SYTyOXGzPpnIaAGphRANiIOAEXXUpa/OxoCdGTwgrC/QzwL6UOo\n" +
			"IXdTTLWfLMeeI1Byk3U0GnF1SDKComdnMlXBBez4dIP/YPFKmtD4pb+36oqJOPt5\n" +
			"9QIDAQAB";

	/**
	 * 服务器私钥(经过pkcs8格式处理)
	 */
	private static final String SERVER_PRV_KEY_PKCS8 = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDNdC9H5uA02m+3\n" +
			"Vt5i2Q3DTGAQsxJMOnQIIQ7LiwKmUXAxHwwB/BmW9FwiKPI87V2so4A++0Z48Bvv\n" +
			"8ec6aIHiNbRD8wq099CFjlZ5Ne4U5wzdJGmxd89cOzydpQIfQTrs610nEBmQmJfy\n" +
			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ntUMnehBeq+g9Ht37GHA6s/9vz9eF9A/dYlN/h9GcJI/ur2LpBhgKuCuuXADMDk\n" +
			"YU+V1A26TfN3s/2Auk4agWMlGqJGLxm5OaYRPAEHNoL+hS6d+5FaC3ZSxQKBgFmi\n" +
			"uTE2PMnUbZbotED4xKrC77ZOmGTOryNf9GYrspHi3rzEi2uyrg0ov9hBmasdwOUR\n" +
			"K8YXQXD7gwjI1f+wQp+wxqltpuHnXrLWg5iiMWfHyn5AhmH746EHUH7joiD0zxzK\n" +
			"p6NhG8di70bx3Wacv3hRaKOmNdKJyNUbUkXRMN2xAoGBAIdQbQvhRz6kSA418Asu\n" +
			"otJlcOMLuFiacKVLjc5JMmVI8gKIjQhIN8pwzQ9+tm2A9OBu3GS+HN3cAeR6FAd/\n" +
			"PwBgTE216iuY+/4FHLkRdMwYfenSLJikkT7aA8u4PvtnjxQ5tfBxuRClc0tARjNY\n" +
			"jcKtyfdOzayGmrR6NSrnePGF";

	public static String getServerPubKey() {
		return SERVER_PUB_KEY;
	}

	public static String getServerPrvKeyPkcs8() {
		return SERVER_PRV_KEY_PKCS8;
	}
	
}
